package com.yingdong.logic.service;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Service;

import com.yingdong.annotation.AutoInvoke;
import com.yingdong.logic.http.HttpPlayerNumHandler;
import com.yingdong.logic.http.HttpStatusHandler;
import com.yingdong.sceneserver.inner.service.HttpService;

@Service
public class HttpHandlerService {
	static Log logger = LogFactory.getLog(HttpHandlerService.class);

	@AutoInvoke
	public static void init() {
		HttpService.registHandler("playernum", new HttpPlayerNumHandler());
		HttpService.registHandler("status", new HttpStatusHandler());
		logger.info("HttpHandlerService加载完成");
	}

}
